package com.smart.validate.core;

import java.util.HashSet;
import java.util.Set;

/**
 * @author weaponry MrYe
 * @program smart-validator
 * @description
 * @created 2020-07-19 21:21
 */
public class ValidateResult {
    private boolean success;
    private Set<String> errors;

    public ValidateResult() {
        this.success = true;
        this.errors = new HashSet<>();
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Set<String> getErrors() {
        return errors;
    }
}
